let i = 0
while (i < 5) {
console.log('in loop:', i)
i++
}
let j = 0
const names = ["David", "Julia", "Mario"]
while (j < names.length) {
console.log('name:', names[j])
j++
}
// or do while
let k = 5
do {
console.log('in loop:', k)
k++
} while (i < 5)